﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZengJing.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.YongHuGL.HuJiGL.ZengJing"  Theme="Default"%>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../../../../../JS/jquery.js"></script>
    <script src="../../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <style type="text/css">
        td {
         white-space:nowrap;
        }
    </style>
    <script type="text/javascript">
        function OnSearch(s)
        {
            hdCollection.Set("yhh", s.GetText());
            ASPxCallback1.PerformCallback("setinfo");   
        }

        function ShiFouGXJ(s) {
            if (s.GetChecked()) {
                txtBaoFeiJBH.SetEnabled(true);
            }
            else {
                txtBaoFeiJBH.SetEnabled(false);
            }
        }

        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "setinfo") {
                txtYONGHUM.SetText(arr[2]);
                if (arr[3] != '0') {
                    cmbJingLei.SetValue(arr[3]);
                    cmbJingLei.SetEnabled(false);
                }
            }
        }

        function OpenZB() {
            openCenter("/Pages/QuShui/DiXiaS/2.YongHuGL/HuJiGL/ZengBiao.aspx", "780px", "500px");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            增井
        </div>
          <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
        <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
         
        <asp:UpdatePanel runat="server" ID="updatePanel1">
            <ContentTemplate>
                <div style="border: 0px solid #4486a9; width: 99%;">
                    <div style="width: 80%; margin: auto;">
                        <fieldset style="border: 1px solid  #d0e4fe;">
                            <asp:Panel ID="panEdit" runat="server">
                                <legend style="font-weight: bold"></legend>
                                <table border="0" style="margin: auto; width: 100%">
                                    <tr>
                                        <td style="text-align: right;">用户号：
                                        </td>
                                        <td >
                                            <dx:ASPxTextBox ID="txtYongHuH" ClientInstanceName="txtYongHuH" runat="server" Width="60%"  ClientEnabled="false">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtShenJingBH);var key = event.keyCode;if( key==13){OnSearch(s);}}" />
                                            </dx:ASPxTextBox>
                                        </td>
                                        <%--<td colspan="2" style="float:right;">
                                             <dx:ASPxButton ID="btnSLPC" ClientInstanceName="btnSLPC" runat="server" Text="水利普查"  UseSubmitBehavior="false" ></dx:ASPxButton> 
                                        </td>--%>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">用户名：
                                        </td>
                                        <td colspan="3">
                                            <dx:ASPxTextBox ID="txtYONGHUM" ClientInstanceName="txtYONGHUM" runat="server" Width="80%" ClientEnabled="false">
                                                <%--<ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtShenJingBH);}" />--%>
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right;width:20%">深井编号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtShenJingBH" ClientInstanceName="txtShenJingBH" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtYuanShenJBH);}" />
                                            </dx:ASPxTextBox> 
                                        </td>
                                        <td style="text-align: right;width:20%">原深井编号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtYuanShenJBH" ClientInstanceName="txtYuanShenJBH" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtQuShuiDD);}" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td style="text-align: right">取水地点：
                                        </td>
                                        <td colspan="3">
                                            <dx:ASPxTextBox ID="txtQuShuiDD" ClientInstanceName="txtQuShuiDD" runat="server" Width="80%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbXingZhengQ);}" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr> 
                                    <tr>
                                        <td style="text-align: right">行政区：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbXingZhengQ" ClientInstanceName="cmbXingZhengQ" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbLiuYu);}" />
                                            </dx:ASPxComboBox>
                                        </td>
                                        <td style="text-align: right">流域：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbLiuYu" ClientInstanceName="cmbLiuYu" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbShuiZiYFQ);}" />
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                    <tr>
                                          <td style="text-align: right">水资源分区：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbShuiZiYFQ" ClientInstanceName="cmbShuiZiYFQ" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbShuiLiFP);}" />
                                            </dx:ASPxComboBox>
                                        </td> 
                                        <td style="text-align: right">水利分片：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbShuiLiFP" ClientInstanceName="cmbShuiLiFP" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtCengCi);}"  />
                                            </dx:ASPxComboBox>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td style="text-align: right;">层次：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtCengCi" ClientInstanceName="txtCengCi" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtShenDu);}" />
                                            </dx:ASPxTextBox> 
                                        </td>
                                        <td style="text-align: right">深度：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtShenDu" ClientInstanceName="txtShenDu" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtKouJing);}" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr> 
                                     <tr>
                                        <td style="text-align: right;">口径：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtKouJing" ClientInstanceName="txtKouJing" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtXuKeZ);}" />
                                            </dx:ASPxTextBox> 
                                        </td>
                                        <td style="text-align: right">许可证：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtXuKeZ" ClientInstanceName="txtXuKeZ" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtXuKeSLH);}" />
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>  
                                    <tr>
                                         <td style="text-align: right">许可受理号：
                                        </td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtXuKeSLH" ClientInstanceName="txtXuKeSLH" runat="server" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtDu);}" />
                                            </dx:ASPxTextBox>
                                        </td> 
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">许可起始日期：
                                        </td>
                                         <td>
                                            <dx:ASPxDateEdit ID="deRiQi_QS" runat="server">
                                                <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                            </dx:ASPxDateEdit>
                                        </td> 
                                        <td style="text-align: right">许可终止日期：
                                        </td>
                                         <td>
                                            <dx:ASPxDateEdit ID="deRiQi_ZZ" runat="server">
                                                <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                            </dx:ASPxDateEdit>
                                        </td> 
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">坐标值:</td>
                                        <td colspan="3">
                                            <table style="width:100%">
                                                <tr>
                                                    <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                                    <td>经度：</td>
                                                    <td style="width:60px;">
                                                        <dx:ASPxTextBox ID="txtDu" ClientInstanceName="txtDu" runat="server" Width="100%" MaxLength="3">
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtFen);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>度</td>
                                                    
                                                    <td style="width:60px">
                                                        <dx:ASPxTextBox ID="txtFen" ClientInstanceName="txtFen" runat="server" Width="100%" MaxLength="2">
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtMiao);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>分</td>
                                                    
                                                    <td style="width:60px">
                                                        <dx:ASPxTextBox ID="txtMiao" ClientInstanceName="txtMiao" runat="server" Width="100%">
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtDu2);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>秒</td>
                                                     <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                                   <td>纬度:</td>
                                                    <%--<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>--%>
                                                   
                                                    <td style="width:60px">
                                                        <dx:ASPxTextBox ID="txtDu2" ClientInstanceName="txtDu2" runat="server" Width="100%" MaxLength="3">
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtFen2);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                     <td>度</td>
                                                    
                                                    <td style="width:60px">
                                                        <dx:ASPxTextBox ID="txtFen2" ClientInstanceName="txtFen2" runat="server" Width="100%" MaxLength="2">
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtMiao2);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td>分</td>
                                                   
                                                    <td style="width:60px">
                                                        <dx:ASPxTextBox ID="txtMiao2" ClientInstanceName="txtMiao2" runat="server" Width="100%" >
                                                            <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbJingLei);}" />
                                                        </dx:ASPxTextBox>
                                                    </td> 
                                                     <td>秒</td>
                                                </tr>
                                            </table>
                                        </td> 
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">井类：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbJingLei" ClientInstanceName="cmbJingLei" runat="server"   Width="60%">
                                                <Items>
                                                    <dx:ListEditItem Text="常用井" Value="1" />
                                                    <dx:ListEditItem Text="采灌井" Value="2" />
                                                    <dx:ListEditItem Text="专灌井" Value="3" />
                                                    <dx:ListEditItem Text="矿泉井" Value="4" />
                                                </Items>
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbJingBJ);}" />
                                            </dx:ASPxComboBox>
                                        </td>
                                          <td style="text-align: right">井标记：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbJingBJ" ClientInstanceName="cmbJingBJ" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(cmbHuanXianBJ);}" />
                                            </dx:ASPxComboBox>
                                        </td> 
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">环线标记：
                                        </td>
                                        <td>
                                            <dx:ASPxComboBox ID="cmbHuanXianBJ" ClientInstanceName="cmbHuanXianBJ" runat="server" ValueType="System.String" Width="60%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtBeiZhu);}" />
                                            </dx:ASPxComboBox>
                                        </td>
                                          <td style="text-align: right">井性质：
                                        </td>
                                        <td>
                                            <dx:ASPxCheckBox runat="server" ID="ckbJingXZ" ClientInstanceName="ckbJingXZ" Width="60%" Text="更新井">
                                                <ClientSideEvents  CheckedChanged="function(s,e){ShiFouGXJ(s);}"/>
                                            </dx:ASPxCheckBox>
                                            <%--<dx:ASPxComboBox ID="cmbJingXZ" ClientInstanceName="cmbJingXZ" runat="server" ClientEnabled="false" Width="60%">
                                            </dx:ASPxComboBox>--%>
                                        </td> 
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">更新报废井编号：</td>
                                        <td>
                                            <dx:ASPxTextBox ID="txtBaoFeiJBH" ClientInstanceName="txtBaoFeiJBH" runat="server" Width="60%" ClientEnabled="false">
                                            </dx:ASPxTextBox>
                                        </td>
                                        <td style="text-align: right">凿井日期：</td>
                                        <td>
                                            <dx:ASPxDateEdit ID="deRiQi" runat="server">
                                                <CalendarProperties ClearButtonText="清除" TodayButtonText="今天"></CalendarProperties>
                                            </dx:ASPxDateEdit>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">泵流量：</td>
                                        <td colspan="3">
                                            <table>
                                                <tr>
                                                    <td>
                                                         <dx:ASPxTextBox ID="txtBLL" ClientInstanceName="txtBLL" runat="server" Width="100%" ClientEnabled="false">
                                            </dx:ASPxTextBox> 
                                                    </td>
                                                    <td>立方米/小时</td>
                                                    <td style="width:180px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                                    <td style="text-align: right">扬程：</td>
                                                     <td>
                                                         <dx:ASPxTextBox ID="txtYC" ClientInstanceName="txtYC" runat="server" Width="100%" ClientEnabled="false">
                                            </dx:ASPxTextBox> 
                                                    </td>
                                                    <td>米</td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right">备注：
                                        </td>
                                        <td colspan="3">
                                            <dx:ASPxMemo ID="txtBeiZhu" ClientInstanceName="txtBeiZhu" runat="server" Width="80%">
                                                <ClientSideEvents KeyPress="function(s,e){OnKeyNext(btnSave);}" />
                                            </dx:ASPxMemo>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </fieldset>
                    </div>
                    <div style="text-align: right">
                        <hr />
                        <dx:ASPxButton ID="btnEdit" ClientInstanceName="btnEdit" runat="server" Text="增井" OnClick="btnEdit_Click" UseSubmitBehavior="false" Visible="true">
                        </dx:ASPxButton>
                         <dx:ASPxButton ID="btnzb" ClientInstanceName="btnzb" runat="server" Text="增表"  UseSubmitBehavior="false" Visible="true">
                             <ClientSideEvents  Click="function(s,e){OpenZB();}"/>
                        </dx:ASPxButton> 

                        <dx:ASPxButton ID="btnSave" ClientInstanceName="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" UseSubmitBehavior="false" Visible="false">
                            <ClientSideEvents Click="function(s, e) {
	                                               if (ASPxClientEdit.ValidateGroup('group')) {                 
                                                                   e.processOnServer = true;             
                                                                } 
                                                                else 
                                                                { 
                                                                   e.processOnServer = false; 
                                                                }
                                                    }" />
                        </dx:ASPxButton>
                        <dx:ASPxButton ID="btnCancel" ClientInstanceName="btnCancel" runat="server" Text="放弃" OnClick="btnCancel_Click" UseSubmitBehavior="false" Visible="false">
                        </dx:ASPxButton>

                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel> 
    </form>
</body>
</html>
